﻿<%@ Page Language="C#" MasterPageFile="~/View/Master.Master" AutoEventWireup="true" CodeBehind="ViewDisbursementList.aspx.cs"  Inherits="PresentationLayer.View.StoreClerk.ViewDisbursementList" %>

<%@ Register src="../mainMenu.ascx" tagname="mainMenu" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            
        }
        .style2
        {
            
        }
        .style3
        {
            width: 200px;
           
        }
        .style4
        {
            
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div>
     <table width="100%">
    <tr>
        <td style="height:auto;width:200px;vertical-align:top;">
   
            <uc1:mainMenu ID="mainMenu1" runat="server" />
   
        </td>
        <td>


        <center>
        <h2><u>Disbursement List</u></h2></center>
        <div style="padding-left:20px;">
        <table width="100%">
        <tr>
            <td style="width:150px;"> Department :</td>
            <td>
            <asp:DropDownList ID="ddDepartment" runat="server" AppendDataBoundItems="True" 
            AutoPostBack="True" onselectedindexchanged="ddDepartment_SelectedIndexChanged">
        <asp:ListItem Value="0">Select Department</asp:ListItem>
        </asp:DropDownList>
            </td>
            <td style="text-align:right">
            <asp:Button ID="btnPrint" runat="server" Text="Print" Width="72px" 
                    onclick="btnPrint_Click" OnClientClick="form1.target='_blank';"/>
            </td>
        </tr>
        </table>    
        
       
        <asp:Panel ID="Panel1" runat="server" Height="78px">
         <h4>Department Detail</h4>
            <table style="width:587px;">
            <tr>
                <td class="style3">Department Name : </td>
                <td class="style4">
                    <asp:Label ID="lbDeptName" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style2">Collection Point : </td>
                <td class="style2">
                    <asp:Label ID="lbCP" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style1">Representative Name : </td>
                <td class="style1">
                    <asp:Label ID="lbRname" runat="server"></asp:Label>
                </td>
            </tr>
            </table>
        </asp:Panel>
        <br />
        <asp:GridView ID="gvDisbursementList" runat="server" AllowPaging="True" 
            AutoGenerateColumns="False" 
            EmptyDataText="No Disbursement List" 
            CellPadding="4" ForeColor="#333333" GridLines="None" Width="499px">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:TemplateField HeaderText="No">
                <ItemTemplate>
                   <%# Container.DataItemIndex + 1 %>
                </ItemTemplate>
                </asp:TemplateField>

                <asp:TemplateField HeaderText="Item">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Eval("catalogue_Name") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Eval("catalogue_Name") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="ReceivedQty">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox2" runat="server" Text='<%# Eval("requestedQty") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label2" runat="server" Text='<%# Eval("requestedQty") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="AssignedQty">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox3" runat="server" Text='<%# Eval("receivedQty") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label3" runat="server" Text='<%# Eval("receivedQty") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
        </asp:GridView>
        </div>
            <br />
            <br />
            <br />
            <br />
            <br />
            <br />
            <br />
            <br />
            <br />
            <br />
            <br />
            <br />
        <br />
        <br />
        
    </td></tr></table>
    </div>
</asp:Content>
